﻿using System.Windows;

namespace TimeSpan.Services;

public class MessageService : IMessageService {

    public Task AlertAsync(string message, string title) {
        throw new NotImplementedException();
    }

    public Task AlertAsync(string message) {
        throw new NotImplementedException();
    }

    public async Task<bool> ConfirmAsync(string message) {
        await Task.CompletedTask;
        return MessageBox.Show(message, "TimeSpan", MessageBoxButton.OKCancel) == MessageBoxResult.OK;
    }

    public Task<bool> ConfirmAsync(string message, string title) {
        throw new NotImplementedException();
    }

    public Task<bool?> ConfirmWithCancelAsync(string message) {
        throw new NotImplementedException();
    }

    public Task<bool?> ConfirmWithCancelAsync(string message, string title) {
        throw new NotImplementedException();
    }

    public Task ErrorAsync(string message) {
        throw new NotImplementedException();
    }

    public Task ErrorAsync(string message, string title) {
        throw new NotImplementedException();
    }

    public async Task MessageAsync(string message) {
        await Task.CompletedTask;
        MessageBox.Show(message, "TimeSpan");
    }

    public Task MessageAsync(string message, string title) {
        throw new NotImplementedException();
    }

    public Task SuccessAsync(string message) {
        throw new NotImplementedException();
    }

    public Task SuccessAsync(string message, string title) {
        throw new NotImplementedException();
    }

    public Task WarnAsync(string message) {
        throw new NotImplementedException();
    }

    public Task WarnAsync(string message, string title) {
        throw new NotImplementedException();
    }

}